#!/bin/bash
# go get ./...
select goos in "mac" "linux" "windows"
do
  echo "you choose is $goos"
  go version
  if [ "$goos" = "mac" ];then
    rm -f build/blueprint-crypto
    CGO_ENABLED=1  GOOS=darwin GOARCH=amd64 go build -o  build/blueprint-crypto main.go
  elif [ "$goos" = "linux" ];then
    rm -f build/blueprint-crypto-linux
    CGO_ENABLED=1  GOOS=linux GOARCH=amd64 go build -o  build/blueprint-crypto-linux main.go
  elif [ "$goos" = "windows" ];then
    rm -f build/blueprint-crypto.exe
    CGO_ENABLED=1  GOOS=windows GOARCH=amd64 go build -o  build/blueprint-crypto.exe main.go
  fi
  break
done

# cd templates/ && go-bindata -o=asset.go  -pkg=templates css/... html/... && cd ../
